package com.whisperly.echotalk.starryb.utils;

import com.whisperly.echotalk.bllmodel.SignUp;
import com.whisperly.echotalk.bllmodel.UserWithChat;

public class GlobalData {
    public static String username = "";

    public static UserWithChat user = new UserWithChat();

    public static String objectId;

    public static SignUp signup = new SignUp();

    public static Boolean encryption = false;

    public static Boolean getEncryption() {
        return encryption;
    }

    public static void setEncryption(Boolean encryption) {
        GlobalData.encryption = encryption;
    }

    public static SignUp getSignup() {
        return signup;
    }

    public static void setSignup(SignUp signup) {
        GlobalData.signup = signup;
    }

    public static String getUsername() {
        return username;
    }

    public static void setUsername(String username) {
        GlobalData.username = username;
    }

    public static UserWithChat getUser() {
        return user;
    }

    public static void setUser(String objectId,UserWithChat user) {
        GlobalData.objectId = objectId;
        GlobalData.user = user;
    }

    public static void reset() {
        GlobalData.username = "";
        GlobalData.user = new UserWithChat();
        GlobalData.objectId = null;
    }
}
